import React from 'react'
import ReactDOM from 'react-dom'

let login = false

const element = <>{login ? <div>欢迎您，xxx</div> : <div>请先登录</div>}</>

ReactDOM.render(element, document.getElementById('root'))
